package lp.xian.materials.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lp.xian.materials.domain.RequisitionTable;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
public class RequisitionVo extends BaseEntity {
    private List<RequisitionTable> orderList;
   /* *//** 采购数据id *//*
    private Integer requisitionTableId;

    *//** 采购单id *//*
    @Excel(name = "采购单id")
    private Integer requisitionId;

    *//** 存货编号 *//*
    @Excel(name = "存货编号")
    private Integer requisitionOrderNo;

    *//** 存货名称 *//*
    @Excel(name = "存货名称")
    private String requisitionTableName;

    *//** 单位 *//*
    @Excel(name = "单位")
    private String requisitionTableUnit;

    *//** 单价 *//*
    @Excel(name = "单价")
    private BigDecimal requisitionTablePrice;

    *//** 单价 *//*
    @Excel(name = "数量")
    private Integer requisitionTableNum;


    *//** 税合计 *//*
    @Excel(name = "税合计")
    private BigDecimal requisitionTableTotal;


    *//** 需求日期 *//*
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "需求日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date requisitionTableDate;*/

    private Integer requisitionIds;
    /** 采购订单 */
    private Integer purchaseId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String purchaseOrder;

    /** 采购类型 */
    @Excel(name = "采购类型")
    private Integer requisitionType;

    /** 供应商 */
    @Excel(name = "供应商")
    private Integer supplierIds;

    /** 税率 */
    @Excel(name = "税率")
    private BigDecimal requisitionTableTax;

    /** 业务员 */
    @Excel(name = "业务员")
    private String purchasePerson;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;









    @Override
    public String toString(){
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

                .append("requisitionIds", getRequisitionIds())
                .append("requisitionTableTax", getRequisitionTableTax())
                .append("purchaseId", getPurchaseId())
                .append("purchaseOrder", getPurchaseOrder())
                .append("requisitionType", getRequisitionType())
                .append("supplierIds", getSupplierIds())
                .append("requisitionTableTax", getRequisitionTableTax())
                .append("purchasePerson", getPurchasePerson())
                .append("purchaseDate", getPurchaseDate())
                .append("auditStatus", getAuditStatus())


                .toString();
    }
}
